package com.xxxt.entity;

import java.util.List;

//公司实体类
public class Company {
	private String companyId;//公司id
	
	private String phone;//联系方式
	
	private String name;//公司名字
	
	private String email;//公司邮箱
	
	private String intro;//公司简介
	
	private String address;//公司地址
	
	private String img;
	
	private List<Student>students;//与公司关联的所有学生
	
	private List<Practice>practices;//与公司关联的所有实习记录
	
	
	public Company(String companyId, String phone, String name, String email, String intro, String address,
			String img,List<Student> students, List<Practice> practices) {
		super();
		this.companyId = companyId;
		this.phone = phone;
		this.name = name;
		this.email = email;
		this.intro = intro;
		this.address = address;
		this.students = students;
		this.practices = practices;
	}
	public Company(String companyId) {
		this.companyId = companyId;
	}
	public Company() {}
	
	public Company( String phone, String name, String email, String intro, String address,
			List<Student> students, List<Practice> practices) {
		super();
		this.phone = phone;
		this.name = name;
		this.email = email;
		this.intro = intro;
		this.address = address;
		this.students = students;
		this.practices = practices;
	}
	
	public String getCompanyId() {
		return companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getIntro() {
		return intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public List<Student> getStudents() {
		return students;
	}
	public void setStudents(List<Student> students) {
		this.students = students;
	}
	public List<Practice> getPractices() {
		return practices;
	}
	public void setPractices(List<Practice> practices) {
		this.practices = practices;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	@Override
	public String toString() {
		return "Company [companyId=" + companyId + ", phone=" + phone + ", name=" + name + ", email=" + email
				+ ", intro=" + intro + ", address=" + address + ", img=" + img + ", students=" + students
				+ ", practices=" + practices + "]";
	}
	
	
}
